Distributed client/server window presentation system

ABSTRACT

This invention addresses the management of window geometry (or layout) in a distributed data processing system. In this invention, a client server model includes an application executing on a client system with graphics being drawn on the server system for the end user. Each client application interacts with the user by defining client windows into which are placed graphical data and where input data may be entered by the user. The application software together with the graphics software is provided in the client processor. The server processor includes the ability to display data to the end user. The application data for display, in the form of a window, includes a special designated area within the window to provide user access to the application.

DESCRIPTION

1. Technical Field

The present invention relates to distributed data processing systems. More particularly, this invention relates to management of the window geometry (or layout) in a distributed client/server presentation system.

2. Background of the Invention

In a distributed data processing system, a computer user typically interacts with a local computer terminal which is known as the server system. The server system is connected functionally, by means of a communications network, to a remote data processing system which is known as the client system. The server system is not necessarily situated any great distance from the client system. An example of such a distributed data processing system is a PC workstation and host processor in a local area network where the client processing system and the workstation server are in the same building or possibly even the same office. A server system may also be connected to more than one client system.

In known distributed data processing systems in which an application is operating on the client system and corresponding graphics data is being drawn on the server system (where the end user is), the client application interacts with the user by defining client windows into which is placed graphical data and from which input entered by the user is received. An example of such input is mouse movement events when the mouse-pointer/cursor is in the window. The graphics input and output capability is provided by the server presentation system. The presentation system of a computer system is the layer of the architecture that provides the functions that may be selected by the application layer such as exchange, display and control of structured data. The server provides the support in the end-user node to process drawing and other requests for output and to direct the generated input to the correct place. The server may be interfacing with a number of client systems as the user may be executing applications which reside on a number of connected client nodes. The server needs to have sufficient understanding of the way the output area of the screen is used to allow clients to receive input and coordinate their drawing on to the appropriate local server terminal.

When the user moves the mouse (or cursor), a mouse (or cursor) event is generated. As the server may be used by a number of client nodes, it is not possible to route an (x, y) value to a client windowing component unless the server can identify that this client node owns the relevant part of the display. Clearly, the server needs to have some understanding of the window geometry. For example, it needs to know to which client system to send a specific mouse-generated event. Usually this would be the client system which owned that part of the screen where the pointer/cursor is.

There are other factors which require the server to have some understanding of the display window geometry. For example, in the case of overlapping windows, when a window is deleted by a client, other clients need to be told when and in which regions they need to repaint the data uncovered as a result of the deletion.

In known presentation systems such as X-Windows, which is a presentation system of the UNIX (registered trademark of Unix Systems Laboratories, Inc.) operating system software, the entire window geometry is stored in the server. This leads to unnecessary storage and processing overheads in the server, as well as unnecessary network traffic to create and modify these application windows.

SUMMARY OF THE INVENTION

Viewed from one aspect, the present invention provides a data processing system comprising: a remote processor and associated memory coupled to a local processor and associated memory; the remote processor including means for executing a plurality of application programs and sending window display data generated by the application programs to the local processor, the local processor including means for receiving the window display data and drawing the data as respective application windows, each containing one or more subarea windows within their perimeter, and where the application programs designate one or more of the subarea windows as an action field through which a user may access the respective application program, and is characterized in that display data common to both an application window and a corresponding action field is stored in the memory associated with the local processor and remaining display data is stored in the memory associated with the remote processor.

In accordance with the present invention, much of the information for a specific window can be managed entirely within the client presentation layer (for example, style information, callback addresses, etc.). The invention recognizes that not all windows generated in a client application program need to be externalized to the server. Only those for which the server needs to perform some different processing need to be externalized. An advantage of this approach is that it leads to a reduction in the network traffic necessary to create and modify application windows. A further advantage is the reduction in storage requirements and processing overheads in the server system.

BRIEF DESCRIPTION OF THE DRAWING

In order that the invention may be fully understood, a preferred embodiment thereof will now be described, by way of example only, with reference to the accompanying drawings in which:

FIG. 1 shows a schematic diagram of a distributed data processing system;

FIG. 2 shows an example of the screen display of a server node showing windows and corresponding device areas; and

FIG. 3 shows a schematic diagram of the structure of a distributed data processing system.

BEST MODE FOR CARRYING OUT THE INVENTION

FIG. 1 shows an example of a distributed data processing system. The client nodes are indicated at 10a and 10b and the server nodes are indicated at 20a, 20b, 20c and 20d. Each of the client nodes are running three applications respectively. It can be seen that server node 20b is accessing an application on each of the client nodes. The resulting display from application C is displayed in window 30a on the display server node 20b and the resulting display of application D is displayed in 30b. The LAN server 5 is used by each client node to access shared data.

The applications (A, B, C, D, E, F) define client application windows (e.g., 30a, 30b). The client presentation system only externalizes to the server the minimum needed for it to carry out its responsibilities. The client presentation system holds all other data required for drawing the main application windows 30a, 30b.

The server maintains the window geometry in a list of device areas. This terminology is used to distinguish them from windows (such as 30a and 30b) as seen by the applications. A typical server screen display showing application windows and corresponding device areas is shown in FIG. 2. A device area is a subarea window displayed within an application window and which is designated by the application program as an action field through which a user may write to the application.

Compared to an application window, a device area is a light-weight structure in that only a minimal amount of attribute data is required for it to be drawn on the screen. It is similar to a window but contains only a portion of the window information. Device areas are maintained in a priority ordered list, not a hierarchy, in the server. In comparison with the prior art, the server overheads in both processing time and storage requirements are reduced as the complete set of application window data is not stored at the server. The order of the device areas in the ordered list changes when the priority of a device area changes, e.g., when overlapping windows are redrawn in a different order by the client system so that a window which previously overlapped another window becomes itself overlapped. Preferably, device areas are not used for drawing into by applications running on the client system. The separation of input-related and output-related window geometry allows many optimizations to take place. The server only needs the device areas once the data is drawn to the display.

With the approach described herein, it can be seen that both the number of windowing areas and the contents of a windowing area are reduced.

A pointer/cursor can be associated with a device area. The server responds to mouse movement by redrawing the associated pointer when the mouse x, y value falls within the device area.

Device areas are allocated for all top-level windows so as to allow routing to the appropriate client node when the input is entered into that part of the display by the user. Allocating device areas for each control in a dialog is unnecessary if there is no difference in what the server will do as a result. For example, input would go to the same node as the parent top-level window, the default system pointer may be used for all controls in the dialog and repainting can be handled by the client system driving the appropriate window painting procedures.

Device areas are shown in FIG. 2 at 40a and 40b. The device area structure contains the following data:

x, y, cx, cy (position and size in screen coordinates)

input interest settings (e.g., mouse move required)

pointer handle for device area

handle of client connection

handle of savebits data (backing store).

FIG. 3 shows schematically the structure of the client and server systems of a distributed data processing system. In this diagram, it is assumed that the server is remote to the client system. The client system 10a contains the entire application (A, B. C). The application message queue 50 resides in the client and is updated by the client presentation system from input received via the server input queue 55 and from messages generated on client nodes. The client system interfaces (via the presentation system router) with the server system. The data sent between client and server presentation systems is known as the presentation system protocol. The transport mechanism is the Transport Layer Protocol Boundary (TLPB) 70.

The majority of protocol requests are handled by the graphics engine component 80 of the server, which interfaces with the display device driver to output graphics data to the display.

The steps taken in the creation of a device area in a distributed data processing system are shown in Table 2. First of all, the main window, such as 30a of FIG. 2, is created in the client system. At this stage, the data required to draw the main window on the screen of the server is stored in the client system. This data includes such attributes as window size, position, color, fonts, addresses, etc. A device area is then defined in the client presentation system. This device area is associated with the frame of the main window. The information necessary to define a device area is much less than that required to define a main window. In a preferred embodiment of the present invention, five data fields (shown in Table 1) are necessary to define a device area, whereas about 200 are required to define a main window. Next, the client presentation system associates a particular cursor type with the device area. Preferably the cursor type which will appear in the device area when it is displayed on the screen of the server node is different from the cursor type which will appear in other parts of the window associated with that device area. The cursor will change shape (or color or flashing frequency) as it passes from the background window areas to the device area. One reason for this cursor change is to indicate to a user that the cursor has entered an entry field of the window. More device areas are then created by the client presentation system as required.

                  TABLE 1     ______________________________________     DEVICE AREA CREATION IN CLIENT     CLIENT       CLIENT         SERVER     APPLICATION  PRESENTATION   PRESENTATION     SYSTEM       SYSTEM         SYSTEM     ______________________________________     create main     window     (window data)                  define device                  area for frame                  associate standard                  cursor with device                  area     create dialogue     subwindows     (buttons, list     boxes, input     fields)                  scan subwindows for                  variations from main                  window                  For text input fields                  requiring special                  cursor define device     (only a subset of                  area to request server     window info is                  to change cursor -     needed for the                  similarly for other     device area) windows requiring                  variation                  send device areas to                  server                                 process user                                 input ac-                  Draw subwindows into                                 cording to                  main window    device area                                 geometry     ______________________________________

                  TABLE 2     ______________________________________     DEVICE AREA CREATION IN CLIENT     CLIENT       CLIENT        SERVER     APPLICATION  PRESENTATION  PRESENTATION     SYSTEM       SYSTEM        SYSTEM     ______________________________________                  (Subwindows not                                For input device                  externalized to                                (e.g., mouse                  server as device                                movement) examine                  areas appear like                                device area list                  pure graphics)                                to find device                                area for new x, y                                position. Change                                to new cursor if                                necessary. For                                input keys,                                generate host in-                                put for client                                system owning                                device areas.     ______________________________________

Dialogue windows are created in the client system. These subwindows are scanned for variations by the presentation system of the client system. The client presentation system then defines a device screen to request the server to change the cursor for text input fields which require a special cursor. If, after a check, there are no more variations from the main window, the data representing the device areas is sent to the server by the client presentation system. The remaining data representing the main window is retained by the client system. The subwindows are drawn into the main window. Any user input is then processed by the server presentation system. 

We claim:
 1. A data processing system comprising:a display terminal, a local processor connected to said display terminal and connected to a local processor memory, a remote processor connected to said local processor and connected to a remote processor memory, said remote processor including means for executing a plurality of application programs and means for sending window display data generated by said application programs to said local processor, said local processor including means for receiving said window display data and drawing respective application windows, each of said application windows containing at least one subarea window within its perimeter, said application programs designating at least one of said subarea windows as an action field through which a user may access a respective application program, means for storing said respective application program window display data common to both one of said application windows and said corresponding action field in the local processor memory, and means for storing window display data defining a remaining portion of said one of said application windows outside said subarea designating said action field, in the remote processor memory.
 2. A data processing system as claimed in claim 1 wherein user input data for an application program is entered in one of the action fields and is sent from the local processor to the remote processor for execution. 